package com.example.myapplication.ui.activity.setting

import android.view.View
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.example.myapplication.R
import com.example.myapplication.arouter.ARouterPath
import com.kun.base.ui.AbsBaseActivity
import kotlinx.android.synthetic.main.activity_other_entrance.*

/**
 *其他练习入口的activity
 *
 * @author : Kun
 * @date : 2021/6/18
 * @time : 15:13
 */
@Route(path = ARouterPath.OTHER_ENTRANCE)
class OtherEntranceActivity : AbsBaseActivity(), View.OnClickListener {
    override fun getLayoutId(): Int {
        return R.layout.activity_other_entrance
    }

    override fun initViewModel() {
    }

    override fun initView() {
        tv_record!!.setOnClickListener(this)
        tv_ui!!.setOnClickListener(this)
    }

    override fun onClick(v: View) {
        when (v.id) {
            R.id.tv_record -> ARouter.getInstance().build("/recordTest/MediaMainActivity").navigation()
            R.id.tv_ui -> ARouter.getInstance().build("/uiTest/UIMainActivity").navigation()
//            R.id.tv_ui -> ARouter.getInstance().build("/uiTest/UITestActivity").navigation()
        }
    }
}